import request from "@/utils/request";

export function categoryList(queryParams) {
  return request({
    url: '/shop/category/getAllCategory',
    method: 'post',
    params: queryParams
  })
}
export function deleteObj(id)
{
  return request({
    url: '/shop/category/'+id,
    method: 'delete'
  })
}


export function updateOrSave(data) {
  return request({
    url: '/shop/category',
    method: 'put',
    data: {
      ...data
    }
  })
}
